package org.example.postgraduateproject.Dao;

import org.example.postgraduateproject.entity.Answer;

import java.util.List;

public interface AnswerDao {
    List<Answer> selectAllAnswers();
    Answer selectAnswerById(int answerId);
    List<Answer> selectAnswersByQuestionId(int questionId);
    List<Answer> selectAnswersByUserId(int userId);
    int insertAnswer(Answer answer);
    int updateAnswer(Answer answer);
    int deleteAnswer(int answerId);
}